<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String username = request.getSession().getAttribute("username")==null?"":request.getSession().getAttribute("username").toString();
    String name = request.getSession().getAttribute("name")==null?"":request.getSession().getAttribute("name").toString();
    String age = request.getSession().getAttribute("age")==null?"":request.getSession().getAttribute("age").toString();
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/jquery-1.8.3.js" type="text/javascript"></script>
    <script type="text/javascript">
        var username = "<%=username%>";
        var name = "<%=name%>";
        var age = "<%=age%>";
        $(function () {
            $("#userInfo").html("<tr><td>"+username+"</td><td>"+name+"</td><td>"+age+"</td></tr>");
        });
    </script>
</head>
<body>

    <table border="1" id="userInfo"></table>

</body>
</html>